package com.test.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.sywl.orm.User;
import com.sywl.util.DataGridModel;
import com.test.form.Shop;

@Controller
@RequestMapping("/kfc/brands")
public class JSONController {
	
	@RequestMapping(value="{name}",method=RequestMethod.GET)
	public @ResponseBody DataGridModel getShopInJSON(@PathVariable String name){
		User shop=new User();
		shop.setUserName("zhangsan");
		shop.setRealName("ddd");
		shop.setPassword("12345");
		//shop.setStaffName(new String[]{"mkyong1","mkyong2","mkyong3"});
		DataGridModel dgm=new DataGridModel();
		dgm.setRows(100);
		return dgm;
	}
}
